<?php

namespace app\validate\api;

use think\Validate;

class Employee extends Validate
{
    protected $rule =   [
        'password'  => 'require|max:25',
        'username'   => 'require|max:25',
    ];

    protected $message  =   [
        'password.require' => '密码必须',
        'password.max'     => '名称最多不能超过25个字符',
        'username.require'     => '名称最多不能超过25个字符',
        'username.max'     => '名称最多不能超过25个字符',
    ];
}